using System;
using System.Collections.Generic;
using System.Linq;

using MonoTouch.Foundation;
using MonoTouch.UIKit;
using MonoTouch.Dialog;

namespace Socialite
{
	public partial class UserDetailsScreen : DialogViewController
	{
		public UserDetailsScreen (User user) : base (UITableViewStyle.Grouped, null, true)
		{
			Root = new RootElement (user.BasicInfo.FirstName) {
				new Section (){
					new BadgeElement (UIImage.FromFile (user.ProfilePhotoPath), user.BasicInfo.FirstName, () => {
						new UIAlertView ("Adam Kiu", "...What a fucking douchebag...", null, "Continue").Show (); 
					}),
					new StringElement (user.BasicInfo.Age.ToString()),
					new StringElement(user.BasicInfo.Gender.ToString()),
					new StringElement(user.BasicInfo.Race.ToString())
				
				}
			};
		}
	}
}
